/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package utilitario;

import javax.swing.JCheckBox;
import model.dominio.AcaoSistema;

/**
 *
 * @author Rodrigo
 */
public class JCheckBoxAcaoSistema extends JCheckBox {

    private AcaoSistema acao;

    public JCheckBoxAcaoSistema(AcaoSistema acao) {
        super(acao.getNome());
        this.acao = acao;
    }

    public AcaoSistema getAcao() {
        if (this.isSelected()) {
            return this.acao;
        } else {
            return null;
        }
    }
    
}
